package com.gxuwz.util;

import java.io.Serializable;
import java.util.List;

/**
 * Layui分页
 * @author Timo
 *
 */
public class Pager<T> implements Serializable{
            
	private static final long serialVersionUID = 8455482182253729950L;
	
	private Integer code;//状态码
    private String msg;//返回信息
    private Integer count;//数据总条数
    private List<T> data;//每页数据信息
    
    
    
	@Override
	public String toString() {
		return "Pager [code=" + code + ", msg=" + msg + ", count=" + count + ", data=" + data + "]";
	}
	public Pager(Integer code, String msg) {
		super();
		this.code = code;
		this.msg = msg;
	}
	
	public Pager(Integer code, String msg, Integer count, List<T> data) {
		super();
		this.code = code;
		this.msg = msg;
		this.count = count;
		this.data = data;
	}
	public Integer getCode() {
		return code;
	}
	public void setCode(Integer code) {
		this.code = code;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public List<T> getData() {
		return data;
	}
	public void setData(List<T> data) {
		this.data = data;
	}
    
    
}
